const { Sequelize, Model } = require('sequelize')
const { sequelize } = require('../../core/db')
// index 值最大为最新一期
//业务表 中间表 index:期刊序号 id:关联实体表期刊信息  type:期刊类型
class Flow extends Model { }

Flow.init({
    index: Sequelize.INTEGER,
    art_id: Sequelize.INTEGER,
    type: Sequelize.INTEGER
}, {
    sequelize,
    tableName: 'flow'
})
module.exports = {
    Flow
}